package edu.biwu.service;

import edu.biwu.dao.ProductDao;
import edu.biwu.po.Product;

import java.util.List;

/**
 * @author 王俊彪
 * @version 1.0
 */
public class ProductServiceImpl implements ProductService{
    private ProductDao productDao;
    @Override
    public void updateProduct(Product product) {
        productDao.updateProduct(product);
    }

    @Override
    public List<Product> findAll() {
        return productDao.findAll();
    }

    public void setProductDao(ProductDao productDao) {
        this.productDao = productDao;
    }
}
